package HomeWorkNewYear;

public class Day04ShuZu {
    public static void main(String[] args) {
        int[]a=new int[10];

        int[] a1 = new int[3];
        int[] a2 = {1,2,3};
        int[] a3 = new int[]{1,2,3};
        int[] a4 ;
        a4=new int[]{1,2,3};
        System.out.println("数组的长度为:"+a1.length);
        a1[0]=100;
        a1[1]=200;
        a1[2]=300;
        System.out.println(a1[1]);
        System.out.println(a1[a1.length-1]);
    }
}
